<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>14.行级块级之间的转换</title>
    <style>
        /*
         转为行级元素:
         display:
              inline 转为行级
              inline-block 行内块级
              block 块级
              none
        
        */
         .a {
            width: 300px;
            height: 300px;
            background-color: red;
            display: inline;
            display: inline-block;
            display: block;
            display:  none;

         }
         .b {
            width: 300px;
            height: 300px;
            background-color: yellow;
            display: inline;
            display: inline-block;
            display: block;
        }
    </style>
</head>
<body>

    <div class="a">xxxx</div>
    <div class="b">####</div>
    <span class="a">span</span>
    <span class="b">span</span>
    
</body>
</html>